package com.hngates.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hngates.common.annotation.Excel;
import com.hngates.common.core.domain.BaseEntity;

/**
 * @author Gates
 */
public class ConstructionOrganization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 施工单位 */
    @Excel(name = "施工单位")
    private String organizationId;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitId;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativePlace;

    /** 支付保函金额 */
    @Excel(name = "支付保函金额")
    private BigDecimal paymentLg;

    /** 保函可用余额 */
    @Excel(name = "保函可用余额")
    private BigDecimal lgBalance;

    /** 保函有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保函有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lgDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public BigDecimal getPaymentLg() {
        return paymentLg;
    }

    public void setPaymentLg(BigDecimal paymentLg) {
        this.paymentLg = paymentLg;
    }

    public BigDecimal getLgBalance() {
        return lgBalance;
    }

    public void setLgBalance(BigDecimal lgBalance) {
        this.lgBalance = lgBalance;
    }

    public Date getLgDate() {
        return lgDate;
    }

    public void setLgDate(Date lgDate) {
        this.lgDate = lgDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("organizationId", getOrganizationId())
            .append("unitId", getUnitId())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("nativePlace", getNativePlace())
            .append("paymentLg", getPaymentLg())
            .append("lgBalance", getLgBalance())
            .append("lgDate", getLgDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
